package com.luobo.shiro.bean;

public class LocalUser {

    public static final ThreadLocal<Test> threadLocal = new ThreadLocal<Test>() {
        @Override
        protected Test initialValue() {
            return new Test();
        }
    };

    public static void init(String username) {
        threadLocal.get().setName(username);
    }

    public static String get() {
        return threadLocal.get().getName();
    }

}
